package com.zzl.admin.vo;

import lombok.Data;

import java.io.Serializable;

/**
 * Description：权限树展示对象
 * Created by 朱正磊 on 2019-03-23 14:44
 */
@Data
public class ZtreeView implements Serializable {

    private static final long serialVersionUID = 782946394570510189L;

    /**
     * description：权限ID（对应Resource的ID）
     */
    private Long id;

    /**
     * description：父权限ID
     */
    private Long pId;

    /**
     * description：权限名称
     */
    private String name;

    /**
     * description：是否开放
     */
    private boolean open;

    /**
     * description：是否属于
     */
    private boolean checked = false;

    public ZtreeView() {}

    public ZtreeView(Long id, Long pId, String name, boolean open) {
        super();
        this.id = id;
        this.pId = pId;
        this.name = name;
        this.open = open;
    }

}
